Spring Boot 2.0 Projects: Build production-grade reactive applications and microservices with Spring Boot by Mohamed Shazin Sadakath
Author:Mohamed Shazin Sadakath [Sadakath, Mohamed Shazin]
Language: eng
Format: epub
Tags: COM060180 - COMPUTERS / Web / Web Services and APIs, COM051000 - COMPUTERS / Programming / General, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt Publishing
Published: 2018-07-29T23:00:00+00:00
innerFunction(o);
println("Outer Function $o");
println("Outer Function Variable $outerFunctionVariable");
}
The outer function can be invoked as follows:
outerFunction("Hello World!");
An inner function can never be invoked from outside its scope but can be accessed from inside it. Also, outer function local variables can be used by inner functions but not vice versa.
Default arguments in functions
Unlike Java function arguments, Kotlin supports default arguments in functions. This enables flexible function writing, as in the following code:
fun withDefaultValues(name : String = "Shazin", age : Int = 32) {
println("Name $name and Age $age");
}
The preceding function can be called as follows:
withDefaultValues();
withDefaultValues("Shahim", 32);
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27121)
Hello! Python by Anthony Briggs(25975)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25312)
Kotlin in Action by Dmitry Jemerov(24417)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23613)
Dependency Injection in .NET by Mark Seemann(23331)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21964)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20868)
Grails in Action by Glen Smith Peter Ledbrook(19888)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17083)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16849)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14477)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12598)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11876)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10657)
Hit Refresh by Satya Nadella(9257)
The Kubernetes Operator Framework Book by Michael Dame(8599)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8449)
Robo-Advisor with Python by Aki Ranin(8394)